import request from "@/utils/request";

export const getAllConvenientInfo = async data => {
  return await request({
    url: "/merchant/convenient-info/loadAllByQuery",
    method: "post",
    data
  });
};
export const deleteConvenientInfo = async data => {
  return await request({
    url: "/merchant/convenient-info/delete",
    method: "get",
    params: data
  });
};
export const getAllConvenientBusiness = async data => {
  return await request({
    url: "/merchant/convenient-business/loadAllByQuery",
    method: "post",
    data
  });
};
export const deleteConvenientBusiness = async data => {
  return await request({
    url: "/merchant/convenient-business/delete",
    method: "get",
    params: data
  });
};
export const addConvenientInfo = async data => {
  return await request({
    url: "/merchant/convenient-info/add",
    method: "post",
    data
  });
};
export const editConvenientInfo = async data => {
  return await request({
    url: "/merchant/convenient-info/modify",
    method: "post",
    data
  });
};
export const getConvenientInfo = async data => {
  return await request({
    url: "/merchant/convenient-info/loadOne",
    method: "get",
    params: data
  });
};
export const addConvenientBusiness = async data => {
  return await request({
    url: "/merchant/convenient-business/add",
    method: "post",
    data
  });
};
export const getConvenientBusiness = async data => {
  return await request({
    url: "/merchant/convenient-business/loadOne",
    method: "get",
    params: data
  });
};
export const editConvenientBusiness = async data => {
  return await request({
    url: "/merchant/convenient-business/modify",
    method: "post",
    data
  });
};
